feat(schema): declare a generated-from relationship - #49
Merged
Conversation
A repository that is rendered by another had no way to say so. The closest existing type, embedded-context-source, means context embedding and requires a materialization value, so using it would have made the anchor assert something untrue. The edge is declared on the rendered repository and names its generator, the same direction as fork-of. Declaring it the other way would put a list of every rendered tree inside one generator anchor, which is a second copy of a fact the renderer already owns and drifts exactly when trees are added or removed. It derives no consumer edge and requires no module.consumption declaration: nothing is vendored, pinned or executed from the generator. An absent generator is still reported as a missing target. Closes #48 Claude-Session: https://claude.ai/code/session_01HMPUfMTrzqwrcgDCFvjnFG
Adding the relationship enum member changed the policy source tree, so the committed bundle lock and the generated workflow header carried a stale source-tree digest. Regenerated through plan/apply; only provenance digests move and the workflow's own output digest is unchanged. Claude-Session: https://claude.ai/code/session_01HMPUfMTrzqwrcgDCFvjnFG
The rendered tree can be verified against its generator's output; a generator listing its outputs has nothing local to check that list against. Claude-Session: https://claude.ai/code/session_01HMPUfMTrzqwrcgDCFvjnFG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #48.
A repository that is rendered by another had no way to say so.
relationships[]was a closed enum of eight types and none of them meant "generates". The nearest neighbour,embedded-context-source, means context embedding and requires amaterializationvalue, so using it would have made the anchor assert something untrue.Direction
The edge is declared on the rendered repository and names its generator — the same direction as
fork-of:Declaring it the other way would put a list of every rendered tree inside one generator anchor. That is a second copy of a fact the renderer already owns, and it drifts exactly when a tree is added or removed. The direction also decides whether the fact is checkable: a rendered tree asserting "I came from X" can be verified against the generator's output, while a generator asserting "I produce these seven" has nothing local to check it against.
Semantics
generated-fromderives no consumer edge and requires nomodule.consumptiondeclaration — nothing is vendored, pinned or executed from the generator. It is not a dependency. An absent generator is still reported asGDS_IDENTITY_INDEX_TARGET_MISSINGlike any other typed relationship, so the edge cannot silently point at nothing.Additive: it cannot invalidate an existing anchor.
Real consumer
NDDev-it-com/setup-systemsrenders the seven public*-setup-systemtrees, with a check that clones all seven and requires byte-for-byte equality with the rendered output. That relationship is enforced in their tooling but was invisible to GDS and could only be stated as prose inproduct.purpose.Verification
core/estate: one proves the edge is recorded without deriving a consumer or demanding a consumption declaration, the other proves an absent generator is still a missing target.valid-generated-repository.yamlregistered incases.json.scripts/validate_ci_tier.sh pr-requiredpasses, includingGDS integrated assurance: PASS.https://claude.ai/code/session_01HMPUfMTrzqwrcgDCFvjnFG